package com.dw.etl.core.api;
import com.dw.etl.core.bean.model.SysPermissions;
import com.dw.etl.core.bean.vo.LayMsg;
import com.dw.etl.core.bean.vo.Msg;

import java.util.Map;

/**
 * @author GuoPeng
 * @Title: PermissionsService
 * @Description: TODO
 * @date 2019/5/13 12:12
 */
public interface PermissionsService {

    /**
     * 获取权限信息
     * @param page
     * @param limit
     * @return
     */
    LayMsg getPermissionsList(Integer page, Integer limit );

    /**
     * 更新权限
     * @param sysPermissions
     * @return
     */
    Msg updatePermissions(SysPermissions sysPermissions );


    /**
     * 锁定解锁权限
     * @param sysPermissions
     * @return
     */
    Msg  PermissionsLock(SysPermissions sysPermissions);


    /**
     * 删除权限
     * @param id
     * @return
     */
    Msg  delectPermissions(Integer id);


    /**
     * 获取所有权限
     * @return
     */
    Msg  selectAll(Integer uid);

    /**
     * 角色设置权限
     * @param map
     * @param id
     * @return
     */
    Msg RolesSetPermissions(Map map, Integer id);

    /**
     * 添加权限
     * @param sysPermissions
     * @return
     */
    Msg insertPermissions(SysPermissions sysPermissions);

}
